<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box{
      height: 40px;
      /* background-color: #fff; */
      border-top: 3px solid #ff8500;
      border-bottom: 1px solid #edeef0 ;
    }

    .box a {
      /* width: 80px; */
      padding: 15px;
      height: 40px;

      text-align: center;
      line-height: 40px;
    
      text-decoration-line: none;
      display: inline-block;

      font-size: 12px;
      color: #4c4c4c;
    }
    .box a:hover{
      background-color: #edeef0 ;
      color: #ff8400;
    }
  </style>
</head>
<body>
  <!-- 上一个新浪导航如果不是4个字会出现排版错误 -->
  <!-- 利用padding -->
  <div class="box" >
    <a href="">新浪导航新浪导航</a>
    <a href="">新浪导航</a>
    <a href="">新浪导航</a>
    <a href="">新浪导航</a>
  </div>
</body>
</html>